
public class Odcinek {
	private int x1, y1, x2, y2;
	
	public Odcinek(int nX1, int nY1, int nX2, int nY2)
	{
		x1 = nX1;
		y1 = nY1;
		x2 = nX2;
		y2 = nY2;
	}
	
	public int getX1()
	{
		return x1;
	}
	
	public int getY1()
	{
		return y1;
	}
	
	public int getX2()
	{
		return x2;
	}
	
	public int getY2()
	{
		return y2;
	}
}
